/**
 * @brief system调用测试
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char **argv) {
    char command[128] = {"echo"};

    // snprintf(command, sizeof(command), "echo %s", argv[1]);
    for (int i = 0; i < argc; i++) {
        strncat(command, " ", sizeof(command) - strlen(command) - 1);
        strncat(command, argv[i], sizeof(command) - strlen(command) - 1);
    }

    system(command);

    return 0;
}